gboolean was_visible;
priv = gdk_seat_default_get_instance_private (GDK_SEAT_DEFAULT (seat));
- was_visible = gdk_surface_is_visible (surface);
+ was_visible = gdk_surface_get_mapped (surface);
if (prepare_func)
(prepare_func) (seat, surface, prepare_func_data);
- if (!gdk_surface_is_visible (surface))
+ if (!gdk_surface_get_mapped (surface))
{
- g_critical ("Surface %p has not been made visible in GdkSeatGrabPrepareFunc",
+ g_critical ("Surface %p has not been mapped in GdkSeatGrabPrepareFunc",
surface);
return GDK_GRAB_NOT_VIEWABLE;
}
GdkWaylandPointerData *pointer = GDK_WAYLAND_DEVICE (device)->pointer;
if (gdk_surface_get_surface_type (surface) == GDK_SURFACE_TEMP &&
- gdk_surface_is_visible (surface))
+ gdk_surface_get_mapped (surface))
{
g_warning ("Surface %p is already mapped at the time of grabbing. "
"gdk_seat_grab() should be used to simultanously grab input "
if (prepare_func)
(prepare_func) (seat, surface, prepare_func_data);
- if (!gdk_surface_is_visible (surface))
+ if (!gdk_surface_get_mapped (surface))
{
gdk_wayland_seat_set_grab_surface (wayland_seat, NULL);
return GDK_GRAB_NOT_VIEWABLE;
*/
is_xdg_popup = is_realized_popup (surface);
- is_visible = gdk_surface_is_visible (surface);
+ is_visible = gdk_surface_get_mapped (surface);
if (is_xdg_popup && is_visible && !impl->initial_configure_received)
gdk_wayland_surface_hide (surface);
x * impl->surface_scale, y * impl->surface_scale,
width * impl->surface_scale,
height * impl->surface_scale,
- gdk_surface_is_visible (surface));
+ gdk_surface_get_mapped (surface));
}
return result;
}
GtkPopover *popover = user_data;
GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
- if (priv->surface && gdk_surface_is_visible (priv->surface))
+ if (priv->surface && gdk_surface_get_mapped (priv->surface))
present_popup (popover);
return G_SOURCE_CONTINUE;
{
GtkPopoverPrivate *priv = gtk_popover_get_instance_private (popover);
- if (priv->surface && gdk_surface_is_visible (priv->surface))
+ if (priv->surface && gdk_surface_get_mapped (priv->surface))
present_popup (popover);
}